package com.atguigu.ascii;

public class AsciiDemo {

    public static void main(String[] args) {
        char a = '我';
        int b = a;
        System.out.println(b);



        String x = "AaZ";
        // 获取ascii码，需要把字符串转成字符
        char[] chars = x.toCharArray();
        for (char aChar : chars) {
            int asciiCode = aChar;
            System.out.println(asciiCode);
        }
    }





}
